/* eslint-disable react/react-in-jsx-scope */
import {Form, ConfigProvider} from 'antd'
/**
 * 
 * @param createConfigProviderProps 实现定制化From-disabled功能
 * @returns 
 */
export const useFormItem = (
	createConfigProviderProps :any
): Function => {
    
	const com = (props: {}) => {

		const cpExtendProps = createConfigProviderProps?.(props)
		return (
			<ConfigProvider {...cpExtendProps}>
				<Form.Item {...props} > </Form.Item>
			</ConfigProvider>
		)
	}
	return com
}
